package cn.edu.hust.sse.software7.class3.service;

import java.util.List;

import cn.edu.hust.sse.software7.class3.entities.EBCommonOnProduct;

public interface EBCommonOnProductService {

	void addCommon(EBCommonOnProduct common);

	List<EBCommonOnProduct> getCommonsByProductId(Long prodId);

	List<EBCommonOnProduct> getCommonsByProdUser(Long prodId, Long userId);

	void deleteCommonsByProd(Long prodId);
	
	void deleteCommonsByUser(Long userId);
}
